import service from '@/utils/request'
// @Tags XhsTicket
// @Summary 创建xhsTicket表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsTicket true "创建xhsTicket表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /xhsTicket/createXhsTicket [post]
export const createXhsTicket = (data) => {
  return service({
    url: '/xhsTicket/createXhsTicket',
    method: 'post',
    data
  })
}

// @Tags XhsTicket
// @Summary 删除xhsTicket表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsTicket true "删除xhsTicket表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xhsTicket/deleteXhsTicket [delete]
export const deleteXhsTicket = (params) => {
  return service({
    url: '/xhsTicket/deleteXhsTicket',
    method: 'delete',
    params
  })
}

// @Tags XhsTicket
// @Summary 批量删除xhsTicket表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除xhsTicket表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xhsTicket/deleteXhsTicket [delete]
export const deleteXhsTicketByIds = (params) => {
  return service({
    url: '/xhsTicket/deleteXhsTicketByIds',
    method: 'delete',
    params
  })
}

// @Tags XhsTicket
// @Summary 更新xhsTicket表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsTicket true "更新xhsTicket表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /xhsTicket/updateXhsTicket [put]
export const updateXhsTicket = (data) => {
  return service({
    url: '/xhsTicket/updateXhsTicket',
    method: 'put',
    data
  })
}

// @Tags XhsTicket
// @Summary 用id查询xhsTicket表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.XhsTicket true "用id查询xhsTicket表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /xhsTicket/findXhsTicket [get]
export const findXhsTicket = (params) => {
  return service({
    url: '/xhsTicket/findXhsTicket',
    method: 'get',
    params
  })
}

// @Tags XhsTicket
// @Summary 分页获取xhsTicket表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取xhsTicket表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /xhsTicket/getXhsTicketList [get]
export const getXhsTicketList = (params) => {
  return service({
    url: '/xhsTicket/getXhsTicketList',
    method: 'get',
    params
  })
}

// @Tags XhsTicket
// @Summary 不需要鉴权的xhsTicket表接口
// @accept application/json
// @Produce application/json
// @Param data query marketingReq.XhsTicketSearch true "分页获取xhsTicket表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /xhsTicket/getXhsTicketPublic [get]
export const getXhsTicketPublic = () => {
  return service({
    url: '/xhsTicket/getXhsTicketPublic',
    method: 'get',
  })
}
